<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="https://cdn.bootcdn.net/ajax/libs/vue/2.6.12/vue.js"></script>
</head>
<body>
<div id="app">
    <ul>
        <li v-for="(value,key) in str">key:{{key}}---value:{{value}}</li>
    </ul>
    <ul>
        <li v-for="(value,key) in num">key:{{key}}---value:{{value}}</li>
    </ul>
    <ul>
        <li v-for="(value,key) in obj">key:{{key}}---value:{{value}}</li>
    </ul>
    <ul>
        <li v-for="(item,index) in arr">index:{{index}}---item:{{item}}</li>
    </ul>
</div>
<script>
    Vue.config.productionTip = false
    const vm = new Vue({
        el: '#app',
        data() {
            return {
              str:'hello vue',
              num:10,
              arr:['北京','上海','深圳','杭州'],
              obj:{
                name:'zhangsan',
                age:18,
                sex:'男'
              }
            }
        }
    })
</script>
</body>
</html>